package com.itheima.dao;

import com.itheima.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @version V1.0
 * @author: TXT
 * @date: 2020/2/11 21:26
 * @description:
 */
public interface ManagerUserMapper {

    List<User> findAllUser();

    void addUser(User user);

    void addRoleUserByUserId( User user);

    User findUserById(@Param("id") Integer id);

    List<Integer> findRoleIdsByUserId(@Param("id") Integer id);

    void updateUser(User user);

    void deleteUserAndRole(@Param("id") Integer id);

    void deleteUser(@Param("id") Integer id);
}
